package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.hkhospital.entity.UserRole;
import java.util.List;
import com.san.hkhospital.mapper.UserRoleMapper;
import com.san.hkhospital.entity.UserRoleExample;
import com.san.hkhospital.service.UserRoleService;
/**
 * ClassName:UserRoleServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class UserRoleServiceImpl implements UserRoleService{

    @Resource
    private UserRoleMapper userRoleMapper;

    @Override
    public long countByExample(UserRoleExample example) {
        return userRoleMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(UserRoleExample example) {
        return userRoleMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sysuserId,Integer roleId) {
        return userRoleMapper.deleteByPrimaryKey(sysuserId,roleId);
    }

    @Override
    public int insert(UserRole record) {
        return userRoleMapper.insert(record);
    }

    @Override
    public int insertSelective(UserRole record) {
        return userRoleMapper.insertSelective(record);
    }

    @Override
    public List<UserRole> selectByExample(UserRoleExample example) {
        return userRoleMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(UserRole record,UserRoleExample example) {
        return userRoleMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(UserRole record,UserRoleExample example) {
        return userRoleMapper.updateByExample(record,example);
    }

}
